package com.zr.daoimpl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.CarUnameDao;
import com.zr.model.Cdriver;
@Repository("caundaim")
public class CarUnameDaoImpl<T> extends BaseDaoImpl<T> implements CarUnameDao<T>{

	@Override
	public List<Cdriver> findDriver() {
		String hql="from Cdriver as cd where cd.cdstate.dstateid=3001001";
		Query query=this.getCurrentSession().createQuery(hql);
		List<Cdriver>li=query.list();
		return li;
	}

}
